

import {
    toast
} from 'nc-lightapp-front';

import language from '../../language';

export default function() {
    
    const {
        selectedRows,
        selectedRowsWithHis
    } = this.state;

    // let operatorData = [];
    
    // selectedRows.forEach((item) => {
    //     if(!item.data.values['pk_psndoc.ishiskeypsn'].value) {
    //         operatorData.push(item);
    //     }
    // });

    if(selectedRowsWithHis.length > 0) {
        this.setState({
            createUserModalVisible: true
        });
    }
    else {
        toast({
            color: 'warning',
            content: language['hi6007-000058']/* 国际化处理： 请先选择你要操作的数据*/
        });
    }
}
